package com.coolingme.Reader;

import java.io.File;
import java.io.FileReader;

/**
 * 更换传输编码
 *
 * @author wangyue
 * @date 2019/4/2 16:15
 */
public class CodeChange {

    public static void main(String[] args) {
        File File = new File("D://Java//IntelliJIDEA//workspace//java-learn//IO//file//fileReader//code.txt");
        FileReader in = null;
        try {
            in = new FileReader(File);
            int code = in.read();
            while (code != -1){
                System.out.println(code);
                System.out.println((char) code);
                code = in.read();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
